package cn.haolihome;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@SpringBootApplication
@MapperScan(basePackages = "cn.xhlhome.mapper")

public class HaoliHomeApplication {

    public static void main(String[] args) {
        SpringApplication.run(HaoliHomeApplication.class, args);
    }

    @Configuration
    static class MyBatisPlusPageConfig {
        @Bean
        public PaginationInterceptor paginationInterceptor() {
            return new PaginationInterceptor();
        }
    }

}
